package com.sss.hloster03;
import java.util.Scanner;

class TestIf05 {

	public static void main(String[] args) {
		int score = -1;
		int grade = 5;
		Scanner input = new Scanner(System.in);
		System.out.print("请输入数学摸底考试成绩：");
		score = input.nextInt();
		//使用嵌套的if语句实现
		if(score>=80) {
			System.out.print("请输入所属年级（只能输入5或者6）：");
			grade = input.nextInt();
			if (grade ==5) {
				System.out.println("你将参加五年级组数学竞赛！");
			}else {
				System.out.println("你将参加六年级组数学竞赛!");
			}
		}else {
			System.out.println("就你这点分，还想参加竞赛！");
		}

		
	}

}
